package com.omar.labs.tamtamy;

import java.util.ArrayList;

public class Notice {
	
	protected long id = 0;
	protected String created = null;
	protected String userId = null;
	protected String notceType = null;
	protected String targetId = null;
	
	public Notice(long id, String created, String userId, String notceType,	String targetId) {
		super();
		this.id = id;
		this.created = created;
		this.userId = userId;
		this.notceType = notceType;
		this.targetId = targetId;
	}
	
	public Notice() {
		super();
		this.id = 0;
		this.created = null;
		this.userId = null;
		this.notceType = null;
		this.targetId = null;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCreated() {
		return created;
	}

	public void setCreated(String created) {
		this.created = created;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getNotceType() {
		return notceType;
	}

	public void setNotceType(String notceType) {
		this.notceType = notceType;
	}

	public String getTargetId() {
		return targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}
	
	public void print(){
		System.out.println("== NOTICE ==");
		System.out.println("id: " + this.id);
		System.out.println("created: " + this.created);
		System.out.println("userId: " + this.userId);
		System.out.println("noticeType: " + this.notceType);
		System.out.println("targetId: " + this.targetId);
	}		
	
	public static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList();;
		ArrayList<String> noticeContent = NoticeContent.getFilters();		
		filters.addAll(noticeContent);
		
		ArrayList<String> noticeContentComment = NoticeContentComment.getFilters();		
		filters.addAll(noticeContentComment);
		
		ArrayList<String> noticeBlog = NoticeBlog.getFilters();		
		filters.addAll(noticeBlog);
		
		ArrayList<String> noticeWiki = NoticeWiki.getFilters();		
		filters.addAll(noticeWiki);
		
		ArrayList<String> noticeForum = NoticeForum.getFilters();		
		filters.addAll(noticeForum);
		
		ArrayList<String> noticeUser = NoticeUser.getFilters();		
		filters.addAll(noticeUser);		
		
		ArrayList<String> noticeUserTagging = NoticeUserTagging.getFilters();		
		filters.addAll(noticeUserTagging);		
		
		return filters;
	}
}

class NoticeContent{
	protected static final String CONTENT = "content";
	protected static final String CONTENT_NEW = "content.new";
	protected static final String CONTENT_UPDATE = "content.update";
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(CONTENT);
		filters.add(CONTENT_NEW);
		filters.add(CONTENT_UPDATE);
		return filters;
	}
}

class NoticeContentComment{
	protected static final String COMMENT_CONTENT = "commentcontent";
	protected static final String COMMENT_CONTENT_NEW = "commentcontent.new";
	protected static final String COMMENT_CONTENT_UPDATE = "commentcontent.update";
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(COMMENT_CONTENT);
		filters.add(COMMENT_CONTENT_NEW);
		filters.add(COMMENT_CONTENT_UPDATE);
		return filters;
	}
}

class NoticeBlog{
	protected static final String BLOG = "blog";
	protected static final String COMMENT_POST = "commentpost";
	protected static final String POST = "post";
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(BLOG);
		filters.add(COMMENT_POST);
		filters.add(POST);
		return filters;
	}	
}

class NoticeWiki{
	protected static final String WIKI = "wiki";
	protected static final String WIKI_NEW = "wiki.new";
	protected static final String WIKI_UPDATE = "wiki.update";
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(WIKI);
		filters.add(WIKI_NEW);
		filters.add(WIKI_UPDATE);
		return filters;
	}
}

class NoticeForum{
	protected static final String FORUM = "forum";
	protected static final String FORUM_NEW = "forum.new";
	protected static final String FORUM_UPDATE = "forum.update";
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(FORUM);
		filters.add(FORUM_NEW);
		filters.add(FORUM_UPDATE);
		return filters;
	}
}

class NoticeUser{
	protected static final String USER_NEW = "user.new";
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(USER_NEW);
		return filters;
	}
}

class NoticeUserTagging{
	protected static final String USERTAG = "usertag";
	protected static final String USERTAG_SELF = "usertag.self";
	protected static final String USERTAG_SELF_NEW = "usertag_self.new";
	protected static final String USERTAG_SELF_DELETE = "usertag.self.delete";
	protected static final String USERTAG_USER = "usertag.user";
	protected static final String USERTAG_USER_NEW = "usertag.user.new";
	protected static final String USERTAG_USER_APPROVE = "usertag.user.approve";
	protected static final String USERTAG_USER_REJECT = "usertag.user.reject";
	protected static final String USERTAG_USER_DELETE = "usertag.user.delete";	
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(USERTAG);
		filters.add(USERTAG_SELF);
		filters.add(USERTAG_SELF_NEW);
		filters.add(USERTAG_SELF_DELETE);
		filters.add(USERTAG_USER);
		filters.add(USERTAG_USER_NEW);
		filters.add(USERTAG_USER_APPROVE);
		filters.add(USERTAG_USER_REJECT);
		filters.add(USERTAG_USER_DELETE);
		return filters;
	}
}











